// MyApp 组件: 顶层
import 'package:flutter/material.dart';

class MyApp extends StatelessWidget {
  const MyApp({ super.key, required this.child });

  final Widget child;

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: "Flutter Demo",
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true
      ),
      home: child,
    );
  }
}